/**
 * handpick 数据
 */
import { handPickAjax } from '@/api/handpick.js'
export default {
  namespaced: true,
  state: {
    handData: '',
    isLoading: true
  },
  mutations: {
    commitHandPickData (state, data) {
      state.handData = data
      state.isLoading = false
    }
  },
  actions: {
    getHandPickData ({ commit }) {
      // console.log(handPickIndex)
      handPickAjax().then(res =>
        commit('commitHandPickData', res.data)
      ).catch(err => {
        console.log(err)
      })
    }
  },
  getters: {}
}
